package com.lxx.train.common.exception.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum BusinessExceptionEnum {
    SUCCESS(10000, "成功"),

    BAD_REQUEST(400, "Bad Request"),
    UNAUTHORIZED(401, "Unauthorized"),
    FORBIDDEN(403, "Forbidden"),
    NOT_FOUND(404, "Not Found"),
    INTERNAL_SERVER_ERROR(10001, "系统错误"),
    PARAM_ERROR(10002, "参数校验异常"),
    MEMBER_MOBILE_NOT_EXIST(10003, "手机号不存在"),
    MEMBER_MOBILE_CODE_ERROR(10004, "短信验证码错误"),
    BUSINESS_STATION_NAME_UNIQUE_ERROR(10005, "车站已存在"),
    BUSINESS_TRAIN_CODE_UNIQUE_ERROR(1006, "车次编号已存在"),
    BUSINESS_TRAIN_STATION_INDEX_UNIQUE_ERROR(1007, "同车次站序已存在"),
    BUSINESS_TRAIN_STATION_NAME_UNIQUE_ERROR(1008, "同车次站名已存在"),
    BUSINESS_TRAIN_CARRIAGE_INDEX_UNIQUE_ERROR(1009, "同车次厢号已存在"),
    TASK_SCHEDULING_ERROR(1010, "任务调度异常"),
    TASK_CLASS_NOT_EXIST(1011, "任务类不存在");

    private final int code;
    private final String message;

}